//
//  LEImagePicker.h
//  CreditAddressBook
//
//  Created by Lee on 15/7/28.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^LEHandlerBlock) (UIImage *image);

@interface LEImagePicker : UIView

- (void)showInController:(UIViewController *)controller handler:(LEHandlerBlock)handler;

- (void)free;

/**
 *  相机拍照选取图片
 *
 *  @param delegate
 *  @param completion
 */
+ (void)imageFromCameraWithController:(UIViewController *)con completion:(LEHandlerBlock)completion;

/**
 *  从相册中选取图片
 *
 *  @param delegate
 *  @param completion
 */
+ (void)imageFromPhotoLibraryWithController:(UIViewController *)con completion:(LEHandlerBlock)completion;
@end
